package com.clement.spring.study.config;

import com.clement.spring.study.model.Book;
import com.clement.spring.study.model.Person;
import com.clement.spring.study.model.PersonBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * This is just for creating the model bean for experiment
 */
@Configuration
public class ModelConfiguration {
    @Bean
    public Person person() {
        return new PersonBuilder("CC").withAge(33).build();
    }

    @Bean
    public Book book() {
        return new Book();
    }
}
